package com.atguigu.srb.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description:
 * @Author: Gavin
 * @Date: 7/6/2023 7:28 PM
 */
//我们不需要使用数据库,所以排除数据库的自动配置,否则配置文件里面没有数据库相关的信息会报错
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//手动扫描,否则swagger2无法扫描到,就不能使用接口测试了
@ComponentScan(basePackages = "com.atguigu.srb")
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class,args);
    }
}
